if [[ $- != *i* ]] ; then
	return
fi




if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
	dbus="/tmp/my-dbus"
	if test -f $dbus; then
		export `cat $dbus`
	fi
fi


export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
export QT_QPA_PLATFORMTHEME=qt5ct

export DISPLAY=:0
export XDG_RUNTIME_DIR=/run/user/1000
export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-S2Ub6YV85m,guid=9b26bcc7c0782f1c5dbfd234673765fc




PS1='$(if [[ $? == 0 ]]; then echo "\[\e[1;32m\]:)"; else echo "\[\e[1;31m\]:("; fi) $(if [[ `whoami` != "king" ]];then echo "\[\e[1;31m\]\u";else echo "\[\e[1;39m\]\u";fi) \[\e[1;34m\]\w$(if [[ $http_proxy ]];then echo "\[\e[1;33m\] (proxy)";fi) $(if [[ `id -u` == 0 ]];then echo "\[\e[1;31m\]#";else echo "\[\e[1;32m\]$";fi)\[\e[0m\] '




alias  l='ls --color -lh'
alias ll='ls --color -lha'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'




function pon(){
	proxy='http://127.0.0.1:20172'
	export http_proxy=$proxy
	export https_proxy=$proxy
	export RSYNC_PROXY=$proxy
	unset proxy
}
function poff(){
	unset http_proxy https_proxy RSYNC_PROXY
}




bind '"\C-d":"\C-u\C-d"'
bind '"\C-p":history-search-backward'
bind '"\C-n":history-search-forward'
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
bind '"\e[Z": menu-complete-backward'
bind '"\e\e":"\C-asudo \C-e"'
bind 'set show-all-if-ambiguous on'
bind 'set menu-complete-display-prefix on'
bind 'set completion-ignore-case on'
bind 'TAB: menu-complete'
